package com.core.bean;

import java.util.Date;

/**
 * 发货单
 */
public class Shipments {

    /**
     * 编号
     */
    private String id;
    /**
     * SKU商品表 json
     */
    private Goods goods;
    /**
     * 发货人
     */
    private String consignor;
    /**
     * 发货地址
     */
    private String shipAddress;
    /**
     * 收货地址json
     */
    private UserAddress userAddress;
    /**
     * 发货时间
     */
    private Date shipTime = new Date();

    /**
     * 货物状态  0为未发货。1为已发货
     */
    private int status;

    public Shipments() {
    }

    public Shipments(String id, Goods goods, String consignor, String shipAddress, UserAddress userAddress, Date shipTime, int status) {
        this.id = id;
        this.goods = goods;
        this.consignor = consignor;
        this.shipAddress = shipAddress;
        this.userAddress = userAddress;
        this.shipTime = shipTime;
        this.status = status;
    }

    @Override
    public String toString() {
        return "Shipments{" +
                "id='" + id + '\'' +
                ", goods=" + goods +
                ", consignor='" + consignor + '\'' +
                ", shipAddress='" + shipAddress + '\'' +
                ", userAddress=" + userAddress +
                ", shipTime=" + shipTime +
                ", status=" + status +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public String getConsignor() {
        return consignor;
    }

    public void setConsignor(String consignor) {
        this.consignor = consignor;
    }


    public String getShipAddress() {
        return shipAddress;
    }

    public void setShipAddress(String shipAddress) {
        this.shipAddress = shipAddress;
    }

    public UserAddress getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(UserAddress userAddress) {
        this.userAddress = userAddress;
    }

    public Date getShipTime() {
        return shipTime;
    }

    public void setShipTime(Date shipTime) {
        this.shipTime = shipTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
